package edu.ucsc.mit2008.swan.editor.coreUI.internal.wizard;

import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.Wizard;

import edu.ucsc.mit2008.swan.editor.coreUI.SwanCoreUIPlugin;
import edu.ucsc.mit2008.swan.editor.coreUI.internal.wizard.page.ManageTemplatesWizardPage;

public class ManageTemplatesWizard extends Wizard implements IWizard{

	private ManageTemplatesWizardPage manageTemplatesWizardPage;
		
	public ManageTemplatesWizard() {
		super();
		IDialogSettings favoritesSettings = SwanCoreUIPlugin.getDefault().getDialogSettings();
		IDialogSettings wizardSettings = favoritesSettings.getSection(getWizardID());
		if (wizardSettings == null)
			wizardSettings = favoritesSettings.addNewSection(getWizardID());
		setDialogSettings(favoritesSettings);
		setNeedsProgressMonitor(true);
	}

	@Override
	public boolean performFinish() {
		return true;
	}
	
	@Override
	public void addPages() {
		manageTemplatesWizardPage = new ManageTemplatesWizardPage();
		addPage(manageTemplatesWizardPage);
	}
	
	protected String getWizardID(){
		return "ManageTemplatesWizard";
	}
}
